import request from '@/utils/request.js'

// 查询对应的选课历史
export function searchHistories(stu) {
  return request({
    url: `/histories/all/${stu}`,
  })
}

// 清空对应学生的选退课历史记录
export function clearHistories(stu) {
  return request({
    url: `/histories/clear/${stu}`,
    method: 'delete'
  })
}